<style>
#_addUgovorMaterijal{
	width:250px;
}
#_addUgovorMaterijal label{
	width:80px;
}
#_addUgovorMaterijal input[type=submit]{
	float:right;
	clear:both;
}
#_addUgovorMaterijal input[type=checkbox]{
	margin-top:10px;
}
#_addUgovorMaterijal ol li{
	clear:both;
	display:block;
	float:left;
}
#_addUgovorMaterijal ol li label{
	width:auto;
	padding-top:8px;
	float:left;
}
</style>
<div class="area" id="_addUgovorMaterijal">
	<form action="javascript:void(0)" onsubmit="afterUgovorAddMaterijal(this,'{{$edit}}')">
		<h2>Novi materijal</h2>
		
		<label class="left" for="_date">datum ulaza:</label>
		<input type="text" class="dateInput" name="_date" id="_date" value="{{$date}}" offsetFix="1" />
		<input type="button" class="datePicker" onclick="displayDatePicker('_date',this)" />
		
		<br clear="all" />
		<label class="left" for="_tip_ulaza">tip ulaza:</label>
		<select name="_tip_ulaza" id="_tip_ulaza">
			{{%loop start tu_id}}
			<option value="{{$tu_id}}" {{$selected_tu}}>{{$tu_name}}</option>
			{{%loop end}}
		</select>
		
		<br clear="all" />
		<label class="left" for="_upotrebljiv">upotrebljiv:</label>
		<input type="checkbox" name="_upotrebljiv" id="_upotrebljiv" {{$checked_upotrebljiv}}/>
		
		<br clear="all" />
		<ol>
			{{%loop start tm_id}}
			<li>
				<input type="checkbox" name="_tm_{{$tm_id}}" id="_tm_{{$tm_id}}" naziv="{{$tm_name}}" value="{{$tm_id}}" {{$checked_tm}}/>
				<label for="_tm_{{$tm_id}}">{{$tm_name}}</label>
			</li>
			{{%loop end}}
		</ol>
		
		<br clear="all" />
		<label for="_napomena">napomena:</label><br clear="all" />
		<textarea style="width:210px; height:75px;" name="_napomena" id="_napomena">{{$napomena}}</textarea>
		
		<input type="submit" value="sačuvaj" class="save" />
	</form>
</div>